package org.wicket.jbpm.engine.workflow;

import java.io.Serializable;
import java.util.Date;

import org.wicket.jbpm.engine.workflow.extra.NodeRef;

public class WfInstance implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 4584129046685141862L;

	
    /** Workflow Instance unique id */
    public String id;

    /** Workflow Instance description */
    public String description;

    /** Is this Workflow instance still "in-flight" or has it completed? */
    public boolean active;
    
    /** Workflow Start Date */
    public Date startDate;
    
    /** Workflow End Date */
    public Date endDate;
    
    /** Workflow Definition */
    public WfDefinition definition;  
    
    /** Initiator (cm:person) - null if System initiated */
    public NodeRef initiator;
    
    /** Workflow Package */
    public NodeRef workflowPackage;
    
    /** Workflow Context */
    public NodeRef context;    
    
    public String key;
    
    /* (non-Javadoc)
     * @see java.lang.Object#toString()
     */
    public String toString()
    {
        return "WfInstance[id=" + id + ",active=" + active + ",def=" + definition.toString() + "]";
    }    
}
